package com.kingkim.electromechanical.category.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
public class CategoryController {

    @RequestMapping("/category")
    public ModelAndView category(HttpServletRequest request){
        ModelMap map = new ModelMap();
        map.addAttribute("name","ss");
        return new ModelAndView("login",map);
    }
}
